package com.gtw.modules.dao;

import com.gtw.modules.entity.TbGroupbuCommodity;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 团购商品关系中间表
 */
@Mapper
@Repository
public interface TbGroupbuCommodityDao extends BaseDao<TbGroupbuCommodity>{

    int deleteByPrimaryKey(Integer id);

    int insert(TbGroupbuCommodity record);

    int insertSelective(TbGroupbuCommodity record);

    TbGroupbuCommodity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbGroupbuCommodity record);

    int updateByPrimaryKey(TbGroupbuCommodity record);

    List<TbGroupbuCommodity> queryListOpen(Map<String, Object> map);

    int queryTotalOpen(Map<String, Object> map);

}